package cn.i7baozh.starter.gateway.loadbalancer.dto;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * 服务配置
 *
 * @author : baoqi.zhang
 * @date :   2022/5/24 11:54
 */
@AllArgsConstructor
@NoArgsConstructor
@Builder
@Data
public class InstanceInfo implements Serializable {

    /**
     * 主机ip
     */
    private String host;

    /**
     * 端口
     */
    private Integer port;
    /**
     * 权重
     */
    private Double weight;

    /**
     * 是否健康
     */
    private Boolean healthy;
}
